import { createRouter, createWebHistory } from 'vue-router'
const routeMap : Array<any> = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/demo',
    component: () => import('../views/demo.vue'),
    name: 'demo'
  },
  {
    path: '/home',
    component: () => import('../views/home/home.vue'),
    name: '首页'
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes: routeMap
})

export default router
